<?php
//SQL LOGIN
$username="pepgsou_admin";
$password="_20pepg09";
$database="pepgsou_main";
$hostname="localhost";
mysql_connect($hostname,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");

	$initTitle = "South Salem High School - Courses";

$style="<link href=\"http://www.southsaxons.com/sshs.css\" rel=\"stylesheet\" type=\"text/css\" /><style>\n .opacityFont array(\n filter:alpha(opacity=75);\n -moz-opacity:.75; \n opacity:.75; \n ) \n .opacity array(\n background-color: #FFF;\n filter:alpha(opacity=75);\n -moz-opacity:.75;\n opacity:.75;\n border: 1px solid #000;\n color: #000;\n )\n </style>";
echo "<HTML><HEAD><TITLE>$initTitle</TITLE>$style";
echo "</HEAD>";

$cPages = array();
$cTitle = array();
$cClass = array();

$cTitle[0] = "Welcome and Registration";
$cPages[0] = array(1, 1, 0);
$cClass[0] = array(1, 1);

$cTitle[1] = "School Information";
$cPages[1] = array(2, 2, 0);
$cClass[1] = array(2, 2);

$cTitle[2] = "International Baccalaureate";
$cPages[2] = array(3, 4, 0);
$cClass[2] = array(3, 4);

$cTitle[3] = "Academies at South";
$cPages[3] = array(5, 8, 0);
$cClass[3] = array(5, 8);

$cTitle[4] = "Reading Sequence Diagrams";
$cPages[4] = array(9, 9, 0);
$cClass[4] = array(9, 9);

$cTitle[5] = "English";
$cPages[5] = array(10, 10, 1);
$cClass[5] = array(24, 28);

$cTitle[6] = "Mathematics";
$cPages[6] = array(11, 11, 1);
$cClass[6] = array(28, 31);

$cTitle[7] = "Science";
$cPages[7] = array(12, 12, 1);
$cClass[7] = array(32, 35);

$cTitle[8] = "Social Sciences";
$cPages[8] = array(13, 13, 1);
$cClass[8] = array(36, 43);

$cTitle[9] = "Art";
$cPages[9] = array(14, 14, 1);
$cClass[9] = array(43, 47);

$cTitle[10] = "Business Technology";
$cPages[10] = array(15, 15, 1);
$cClass[10] = array(47, 48);

$cTitle[11] = "Computer Technology";
$cPages[11] = array(16, 16, 1);
$cClass[11] = array(48, 50);

$cTitle[12] = "FACS-Culinary";
$cPages[12] = array(17, 17, 1);
$cClass[12] = array(53, 54);

$cTitle[13] = "Drama- Theatre Arts";
$cPages[13] = array(18, 18, 1);
$cClass[13] = array(51, 52);

$cTitle[14] = "Family and Consumer Studies";
$cPages[14] = array(19, 19, 1);
$cClass[14] = array(54, 55);

$cTitle[15] = "Health and Physical Education";
$cPages[15] = array(20, 20, 1);
$cClass[15] = array(56, 57);

$cTitle[16] = "Industrial Technology";
$cPages[16] = array(21, 21, 1);
$cClass[16] = array(57, 58);

$cTitle[17] = "Languages";
$cPages[17] = array(22, 22, 1);
$cClass[17] = array(64, 67);
?>
<body>
<center><div id="main" class="opacity" style="width:50%;height:100%;"><center>
<table width="100%" height="100%"  style="background-color:#FFFFFF;" cellpadding=5>
<tr><td style="border:solid 1 #000000;"><center><img src="http://www.southsaxons.com/graphics/title_logo.jpg"></center></td></tr>
<tr><td style="border:solid 1 #000000;"><center><h1>Class Bulletin</h1></center></td></tr>

<tr><td style="border:solid 1 #000000;"><center>
<?
for ($i = 0; $i < count($cTitle); $i++)
{
	$s = $cPages[$i][0] + 1;
	$e = $cPages[$i][1] + 1;
	$t = ($cPages[$i][2]==1)?" Information":"";
	$k = $cClass[$i][0] + 0;
	$j = $cClass[$i][1] + 0;
	$c = $cTitle[$i];
	
	echo "<a href=\"page.php?start=$s&end=$e&cstart=$k&cend=$j&title=$c\">$c$t</a><br>\n\n";
}
?></center>
</td></tr>
</table>
</center></div></center>
</body>
</html>